package inheritance;

//讲的是继承中子类构造方法内容
public class Base {

    public Base(int a) {
        System.out.println("带有参数的父类构造方法");
    }

}

 class Derived extends Base{
    public Derived(){
        super(9);
        System.out.println("Derived()");
    }
}
 class Test {
    public static void main(String[] args) {
        Derived d = new Derived();
    }
}
